package com.liyongjian.xhban.exception;

import org.hibernate.service.spi.ServiceException;

@SuppressWarnings("serial")
public class XHBanException extends ServiceException {

    private String code = "9998";

    /**
     * @param message
     * @param root
     */
    public XHBanException(String message, Throwable root) {
        super(message, root);
    }

    /**
     * @param message
     */
    public XHBanException(String message) {
        super(message);
    }


    public XHBanException(String code, String message) {
        super(message);
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }


}
